<ul class="list commentsList" id="commentsList">
{{#if comments}}
    {{#each comments}}
        <li class="commentItem" id="{{_id}}">
            <dl class="user">
                <dt username="{{author.name}}" userid="{{author._id}}">
                    <a href="/user/{{author._id}}"><img src="/uploads/{{author.avatar}}" alt=""></a>
                </dt>
                <dd>
                    <div class="opts">
                        {{#if ../loginUser}}
                            <span class="spantoa up" action="{{upAction}}"{{#if ups.length}} ups="{{ups.length}}"{{/if}}><i>{{upText}}</i>{{#if ups.length}}<em>({{ups.length}})</em>{{/if}}</span>
                            {{#if isAuthor}}
                            <a href="/comment/edit/{{_id}}" class="edit">编辑</a>
                            <span class="spantoa del">删除</span>
                            {{/if}}
                            <span class="spantoa reply">回复</span>
                        {{else}}
                            {{#if ups.length}}
                                <em>赞({{ups.length}})</em>
                            {{/if}}
                        {{/if}}
                    </div>

                    <div class="info">
                        <a href="/user/{{author._id}}">{{author.name}}</a>&emsp;<span>{{ago}}</span>
                    </div>

                    <div class="content">
                        {{#if atUser._id}}<a href="/user/{{atUser._id}}">@{{atUser.name}}</a>&nbsp;{{/if}}
                        {{content}}
                    </div>
                </dd>
            </dl>
        </li>
    {{/each}}
{{else}}
    <div class="noData">没有数据。。。</div>
{{/if}}
</ul>